const qs = require('qs')
const Mock = require('mockjs')

let list = Mock.mock({
  'data|10-20': [
    {
      id: '@id',
      status: '@boolean',
      author: '@last',
      title: '河南省2017年环保产业总值达2000亿元',
      phone: /^1[34578]\d{9}$/,
      address: '@county(true)',
      time: '@time(H:m)'
    },
  ],
})

module.exports = {
  [`POST /api/query`] (req, res) {
      res.json({ code: 200, data:list.data})
  }
}
